home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / GEOD.ZIP / geod.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-19  |  6.5 KB  |  153 lines

  1. /*************************************************************************** 
  2.  *    Menu identifiers.                                                    *
  3.  ***************************************************************************/
  4.  
  5. #define GEOD_ELLIPSOIDMENU      2000       /* Sub Menu               */
  6. #define GEOD_AIRY               2001       /* Menu Item              */
  7. #define GEOD_AUSNSA1969         2002       /* Menu Item              */
  8. #define GEOD_BESSEL             2003       /* Menu Item              */
  9. #define GEOD_CLARKE1866         2004       /* Menu Item              */
  10. #define GEOD_CLARKE1880         2005       /* Menu Item              */
  11. #define GEOD_EVEREST            2006       /* Menu Item              */
  12. #define GEOD_FISCHER1960        2007       /* Menu Item              */
  13. #define GEOD_FISCHER1960SA      2008       /* Menu Item              */
  14. #define GEOD_FISCHER1968        2009       /* Menu Item              */
  15. #define GEOD_HOUGH              2010       /* Menu Item              */
  16. #define GEOD_INTL               2011       /* Menu Item              */
  17. #define GEOD_IAU1968            2012       /* Menu Item              */
  18. #define GEOD_KRASSOVSKIY        2013       /* Menu Item              */
  19. #define GEOD_WGS1972            2014       /* Menu Item              */
  20. #define GEOD_MEASUREMENU        2015       /* Sub Menu               */
  21. #define GEOD_NM                 2016       /* Menu Item              */
  22. #define GEOD_METERS             2017       /* Menu Item              */
  23. #define GEOD_HELPMENU           2018       /* Sub Menu               */
  24. #define GEOD_ABOUT              2019       /* Menu Item              */
  25. #define GEOD_EXIT               2020       /* Menu Item              */
  26.                                 
  27. /*************************************************************************** 
  28.  *    Window/control identifiers.                                          *
  29.  ***************************************************************************/
  30.  
  31. #define GEOD_DIALOG             3000       /* Dialog                 */
  32. #define GEOD_CURRMEASURE        3001       /* Static Text            */
  33. #define GEOD_CURRELLIPSOID      3002       /* Static Text            */
  34. #define GEOD_EQRAD              3003       /* Static Text            */
  35. #define GEOD_POLRAD             3004       /* Static Text            */
  36. #define GEOD_MEANRAD            3005       /* Static Text            */
  37. #define GEOD_FLAT               3006       /* Static Text            */
  38. #define GEOD_ECC                3007       /* Static Text            */
  39. #define GEOD_ECC2               3008       /* Static Text            */
  40.  
  41. #define GEOD_ABOUTDIALOG        4000       /* Dialog                 */
  42.  
  43. #define DEF_BUFF                  80
  44.  
  45. typedef struct _ELLIPSOID
  46. {
  47.     double EquatorialRadius[2];
  48.     double PolarRadius[2];
  49.     double MeanRadius[2];
  50.     double Flattening;
  51.     double Eccentricity;
  52.     double Eccentricity2;
  53. } ELLIPSOID;
  54. typedef ELLIPSOID *PELLIPSOID;
  55.  
  56. ELLIPSOID el[] = { {3443.609, 6377563.396,   /* Airy */
  57.                     3432.104, 6356256.91,
  58.                     3439.774, 6370461.234,
  59.                     0.00334085,
  60.                     0.081673374,
  61.                     0.00667054},
  62.  
  63.                    {3443.931, 6378160.0,   /* Australian National-SA (1969) */
  64.                     3432.384, 6356774.719,
  65.                     3440.082, 6371031.573,
  66.                     0.00335289,
  67.                     0.0818202,
  68.                     0.00669454},
  69.  
  70.                    {3443.52, 6377397.155,    /* Bessel */
  71.                     3432.01, 6356078.963,
  72.                     3439.682, 6370291.091,
  73.                     0.00334277,
  74.                     0.08169683,
  75.                     0.00667437},
  76.  
  77.                    {3443.957, 6378206.4,   /* Clarke (1866) */
  78.                     3432.281, 6356583.8,
  79.                     3440.064, 6370998.9,
  80.                     0.00339008,
  81.                     0.08227185,
  82.                     0.00676866},
  83.  
  84.                    {3443.98, 6378249.145,    /* Clarke (1880) */
  85.                     3432.245, 6356514.87,
  86.                     3440.067, 6371004.387,
  87.                     0.00340756,
  88.                     0.0824834,
  89.                     0.00680351},
  90.  
  91.                    {3443.454, 6377276.345,   /* Everest */
  92.                     3432.006, 6356075.413,
  93.                     3439.638, 6370209.37,
  94.                     0.00332445,
  95.                     0.08147298,
  96.                     0.00663785},
  97.  
  98.                    {3443.934, 6378166.0,     /* Fischer 1960 */
  99.                     3432.389, 6356784.24,
  100.                     3440.086, 6371038.761,
  101.                     0.00335233,
  102.                     0.081813334,
  103.                     0.0069342},
  104.  
  105.                    {3443.928, 6378155.0,     /* Fischer South Asia 1960 */
  106.                     3432.383, 6356773.32,
  107.                     3440.08, 6371027.773,
  108.                     0.00335233,
  109.                     0.081813334,
  110.                     0.00669342},
  111.  
  112.                    {3443.925, 6378150.0,     /* Fischer 1968 */
  113.                     3432.381, 6356768.337,
  114.                     3440.077, 6371022.985,
  115.                     0.00335233,
  116.                     0.08181333,
  117.                     0.00669342},
  118.  
  119.                    {3443.99, 6378270.0,      /* Hough */
  120.                     3432.394, 6356794.343,
  121.                     3440.125, 6371111.148,
  122.                     0.003367003,
  123.                     0.08199189,
  124.                     0.00672267},
  125.  
  126.                    {3444.054, 6378388.0,     /* International */
  127.                     3432.459, 6356911.946,
  128.                     3440.19, 6371229.315,
  129.                     0.003367003,
  130.                     0.08199189,
  131.                     0.00672267},
  132.  
  133.                    {3443.931, 6378160.0,    /* IAU 1968 */
  134.                     3432.384, 6356774.719,
  135.                     3440.082, 6371031.573,
  136.                     0.00335289,
  137.                     0.0818202,
  138.                     0.00669454},
  139.  
  140.                    {3443.977, 6378245.0,    /* Krassovskiy */
  141.                     3432.43, 6356863.019,
  142.                     3440.128, 6371117.673,
  143.                     0.00335233,
  144.                     0.08181333,
  145.                     0.00669342},
  146.  
  147.                    {3443.917, 6378135.0,    /* WGS 1972 */
  148.                     3432.371, 6356750.52,
  149.                     3440.068, 6371006.84,
  150.                     0.00335278,
  151.                     0.0818188,
  152.                     0.00669432}  };
  153.